package com.mashibing.strategy;

import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        //int[] a = {1,4,5,2,3,9,7};
        Cat[] a = {new Cat(3,3), new Cat(5,5), new Cat(1,1)};
        //Dog[] a = {new Dog(3), new Dog(5), new Dog(1)};
        Sorter sorter =new Sorter();
        //sorter.sort(a, new DogComparator());
        //sorter.sort(a, new CatWeightComparator());
        sorter.sort(a, new CatHeightComparator());

        System.out.println(Arrays.toString(a));
    }
}
